
import {
    request,
    IP
} from '../request'
export function getAllBase(){
    return request({
        url: `/practicebase/baseAll`,
    })
};
export function getDataByPageAndSize(page = 1, size = 10) {
    return request({
        url: `/practicebase/jobFairList`,
        params: {
            page,
            size
        }
    })
}

export function LikeSearch(name,page=1,size=10) {
    return request({
        url: `/practicebase/jobFind`,
        params: { name,page,size },
        methods:"GET"
    })
}

export function deleteById(id) {
    return request({
        url: `/practicebase/jobDel`,
        params:{ id },
        methods:"GET"
    })
}

export function appendData(data) {
    return request({
        url: `/practicebase/jobFairAdd`,
        method: 'post',
        headers: {
            "Content-type": "multipart/form-data"
        },
        data
    })
}
export function editData(data) {
    return request({
        url: `/practicebase/jobEdit`,
        method: 'post',
        headers: {
            "Content-type": "multipart/form-data"
        },
        data
    })
}

